home *** CD-ROM | disk | FTP | other *** search
/ Agent Central Host Computer / Agent - Central Host Computer.iso / _SETUP.1 / fbtuning.sql < prev    next >
Text File  |  2000-05-12  |  2KB  |  41 lines

  1. /* RCSVER $Id: fbtuning.sql,v 1.4 2000-01-25 13:04:57-06 randy Exp $ */
  2. /* *************************************************************************
  3. *        Copyright (C) 1998, Agent Systems, Inc. All Rights Reserved.
  4. *
  5. * Name:        fbtuning.sql
  6. * Date:     12/28/1998
  7. * memo:        Randy Wood
  8. * Description:    Create the fbtuning table. This table contains general
  9. *        parameters ("tuning") used at the farebox.
  10. * Changes:
  11. ************************************************************************* */
  12. CREATE TABLE fbtuning
  13. (
  14.     name    VARCHAR2(30),    /* Name of tuning variable */
  15.     val    NUMBER(38),    /* Value of variable */
  16.     descr    VARCHAR2(80),    /* Description of tuning parameter */
  17.                 /* **************************************** */
  18.                 /* Tabtype references the tuningtypes table */
  19.                 /* Must correspond to the "type" field.     */
  20.                 /* **************************************** */
  21.     tabtype    NUMBER(38)    /* Type of parameter */
  22.         CONSTRAINT ref_fbtuning1 REFERENCES tuningtypes(type)
  23.         ON DELETE CASCADE,
  24.                 /* *************************************** */
  25.                 /* Fieldtype must be one of the following: */
  26.                 /*  1 = Boolean field (checkbox)           */
  27.                 /*  2 = List field (choice)                */
  28.                 /*  3 = Free format (text field)           */
  29.                 /*                                         */
  30.                 /* If type = 2, an entry must exist in the */
  31.                 /* tuningvals table.                       */
  32.                 /* If type=3, an entry must exist in the   */
  33.                 /* tuningentry table.                      */
  34.                 /* *************************************** */
  35.     fieldtype    NUMBER(1),
  36.     config_num    NUMBER(38)
  37.         CONSTRAINT ref_fbtuning2 REFERENCES configset(num)
  38.         ON DELETE CASCADE,
  39.     CONSTRAINT pk_fbtuning PRIMARY KEY (name, config_num)
  40. );
  41.